import { defineStore } from 'pinia';

export const userInfoStore = defineStore('userInfo', {
  state: () => {
    return {};
  },
  actions: {
    increment() {
      this.userId++;
    }
  }
});

export const settingStore = defineStore('setting', {
  state: () => {
    return {
		sImgUrl: 'http://static.jgtygolf.com/pics'
	};
  }
});

export const globalConfigStore = defineStore('$gc', {
  state: () => {
    return {
      score: [
        {
          label: '73-76杆',
          text: '可以赢过92%的球友,有机会在业巡赛获得名次。'
        },
        {
          label: '77-82杆',
          text: '可以赢过80%的业余球友'
        },
        {
          label: '83-89杆',
          text: '可以赢过67%的业余球友，有资格参加业巡赛。'
        },
        {
          label: '90-94杆',
          text: '可以赢过48%的业余球友。'
        },
        {
          label: '95-99杆',
          text: '可以赢过35%的业余球友。'
        },
        {
          label: '100-108杆',
          text: '可以和60%的业余球友一较高低。'
        },
        {
          label: '109-120杆',
          text: '可以与35%业余球友一较高低。'
        }
      ],
	  group: ['专业组', '业余组', '青年组'],
	  evaluationType: ['全部', '基础测试', '身体测试', '技能测试', '高级测试', '实战测试']
    };
  }
});
